home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / util / misc / SplitIndexv11.lha / SplitIndexv11 / Include / ReqTools.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-09  |  3.3 KB  |  105 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // ReqTools.hpp - AFrame v1.0 © 1996 Synthetic Input
  3. //
  4. // ReqTools C++ Object utilizing reqtools.library version 38.1296
  5. // by Nico François.  ReqTools is © Nico François
  6. // 
  7. //
  8. // Deryk B Robosson
  9. // Jeffry A Worth
  10. // January 20, 1996
  11. //////////////////////////////////////////////////////////////////////////////
  12.  
  13. #ifndef __AFREQTOOLS_HPP__
  14. #define __AFREQTOOLS_HPP__
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17. // INCLUDES
  18. #include "AFrame:include/AFrame.hpp"
  19. #include "AFrame:include/Object.hpp"
  20. #include <exec/types.h>
  21. #include <exec/memory.h>
  22. #include <exec/execbase.h>
  23. #include <intuition/intuition.h>
  24. #include <utility/tagitem.h>
  25. #include <libraries/dos.h>
  26. #include <proto/exec.h>
  27. #include <proto/dos.h>
  28. #include <stdio.h>
  29. #include <stdlib.h>
  30. #include <string.h>
  31.  
  32. #include <libraries/reqtools.h>
  33. #include <proto/reqtools.h>
  34.  
  35. #define REG register
  36.  
  37. BOOL __asm __saveds file_filterfunc (
  38.     REG __a0 struct Hook *, REG __a2 struct rtFileRequester *,
  39.     REG __a1 struct FileInfoBlock *
  40. );
  41.  
  42. BOOL __asm __saveds font_filterfunc (
  43.     REG __a0 struct Hook *, REG __a2 struct rtFontRequester *,
  44.     REG __a1 struct TextAttr *
  45. );
  46.  
  47. BOOL __asm __saveds vol_filterfunc (
  48.     REG __a0 struct Hook *, REG __a2 struct rtFileRequester *,
  49.     REG __a1 struct rtVolumeEntry *
  50. );
  51.  
  52. //////////////////////////////////////////////////////////////////////////////
  53. // Req_Tools Class
  54. class AFReqTools : public AFObject
  55. {
  56. public:
  57.  
  58.     AFReqTools();
  59.     ~AFReqTools();
  60.  
  61.     virtual void DestroyObject();
  62.     virtual char *ObjectType() { return "ReqTools"; };
  63.  
  64. // Methods
  65.  
  66.     virtual BOOL RTCreate();
  67.     virtual BOOL RTEZRequest(char *, char *);
  68.     virtual BOOL RTEZRequestA(char *, char *, struct rtReqInfo *, ULONG *);
  69.     virtual BOOL RTScreenMode();
  70.     virtual BOOL RTScreenModeA(ULONG *);
  71.     virtual BOOL RTFileRequest();
  72.     virtual BOOL RTFileRequestA(ULONG *);
  73.     virtual BOOL RTFilesRequest();
  74.     virtual BOOL RTFilesRequestA(ULONG *);
  75.     virtual BOOL RTDirRequest();
  76.     virtual BOOL RTVolumeRequest();
  77.     virtual BOOL RTFontRequest();
  78.     virtual BOOL RTFontRequestA(ULONG *);
  79.     virtual BOOL RTPaletteRequest();
  80.     virtual BOOL RTPaletteRequestA(ULONG *);
  81.     virtual void RTScreenToFront(struct Screen *);
  82.     virtual void RTSetWaitPointer(struct Window *);
  83.     virtual BOOL RTLockWindow(struct Window *);
  84.     virtual void RTUnlockWindow(struct Window *,APTR);
  85.     virtual ULONG RTGetLong(char *, struct rtReqInfo *);
  86.     virtual ULONG RTGetLongA(char *, struct rtReqInfo *, ULONG *);
  87.     virtual ULONG RTGetString(UBYTE *, ULONG, char *, struct rtReqInfo *);
  88.     virtual ULONG RTGetStringA(UBYTE *, ULONG, char *, struct rtReqInfo *, ULONG *);
  89.     virtual ULONG RTGetVScreenSize(struct Screen *, ULONG *, ULONG *);
  90.  
  91.     struct rtReqInfo *m_reqinfo;
  92.     struct rtFileRequester *m_filerequester;
  93.     struct rtFontRequester *m_fontrequester;
  94.     struct rtScreenModeRequester *m_screenmoderequester;
  95.     struct rtFileList *m_filelist, *m_tempfilelist;
  96.     struct Hook m_filterhook, m_font_filterhook, m_volume_filterhook;
  97.     APTR m_windowlock;
  98.     ULONG color, longvar;
  99.     char buffer[128], filename[108];
  100.  
  101. };
  102.  
  103. //////////////////////////////////////////////////////////////////////////////
  104. #endif // __AFREQTOOLS_HPP__
  105.